﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XmlTest
{
    public class IndexedFaceSet : Rendering
    {
        private string Ccw;

        public string ccw
        {
            get { return Ccw; }
            set { Ccw = value; }
        }
        private string Convex;

        public string convex
        {
            get { return Convex; }
            set { Convex = value; }
        }
        private string Solid;

        public string solid
        {
            get { return Solid; }
            set { Solid = value; }
        }
        private string CreaseAngle;

        public string creaseAngle
        {
            get { return CreaseAngle; }
            set { CreaseAngle = value; }
        }
        private string NormalIndex;

        public string normalIndex
        {
            get { return NormalIndex; }
            set { NormalIndex = value; }
        }
        private string NormalPerVertex;

        public string normalPerVertex
        {
            get { return NormalPerVertex; }
            set { NormalPerVertex = value; }
        }
        private string TexCoordIndex;

        public string texCoordIndex
        {
            get { return TexCoordIndex; }
            set { TexCoordIndex = value; }
        }

        public IndexedFaceSet()
            : base()
        {
        }

        public IndexedFaceSet(Coordinate coordinate)
            : base()
        {
            this.Ccw = "true";
            this.ColorPerVertex = "true";
            this.Convex = "true";
            this.CreaseAngle = "0";
            this.NormalPerVertex = "true";
            this.Solid = "true";
            this.TexCoordIndex = "";
            this.Coordinate = coordinate;
        }

        public IndexedFaceSet(string coordindex, Coordinate coordinate)
            : base()
        {
            this.Ccw = "true";
            this.ColorPerVertex = "true";
            this.Convex = "true";
            this.CreaseAngle = "0";
            this.NormalPerVertex = "true";
            this.Solid = "true";
            this.TexCoordIndex = "";
            this.coordIndex = coordIndex;
            this.Coordinate = coordinate;
        }
    }
}
